546a72fed454d9b83e3c9ba5f902423d44791b0e,bundles/api/src/main/java/org/apache/sling/api/resource/ResourceUtil.java,ResourceUtil,getValueMap,#Resource#,289
Before Change
? ValueMap.EMPTY
: res.adaptTo(ValueMap.class);
if (map == null) {
Map m = res.adaptTo(Map.class);
if (m != null) {
map = new ValueMapDecorator(m);
} else {
After Change
res.adaptTo(ValueMap.class) : null;
// if no resource or no ValueMap adapter, check Map
if (valueMap == null) {
Map map = (res != null) ? res.adaptTo(Map.class) : null;
// if not even adapting to map, assume an empty map
if (map == null) {